package com.lcf.system.entity;

import com.lcf.framework.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 规则报名表(RuleUser)表实体类
 *
 * @author lcf
 * @since 2025-05-03 11:45:10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class RuleUser extends BaseModel<RuleUser> {
    //id
    private Long id;
    //规则id
    private Long ruleId;
    //用户id
    private Long userId;
    //商品id
    private Long goodsId;
    //购买数量
    private Integer goodsNum;

    public RuleUser(long ruleId, long userId, long goodsId, int goodsNum) {
        this.ruleId = ruleId;
        this.userId = userId;
        this.goodsId = goodsId;
        this.goodsNum = goodsNum;
    }
}

